package com.lfnyxy.dao.org;


import com.lfnyxy.entity.org.UserFunctionDetailEntity;
import com.lfnyxy.entity.org.UserFunctionEntity;
import com.lfnyxy.query.org.UserFunctionQuery;
import com.lfnyxy.vo.PageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ted on 17/5/8.
 */
public interface UserFunctionDao {
    int CreateItem(UserFunctionEntity entity);

    int UpdateItem(UserFunctionEntity entity);

    List<UserFunctionEntity> QueryPageList(UserFunctionQuery query);

    List<UserFunctionEntity> QueryAll();

    int QueryPageListCount(UserFunctionQuery query);

    int CheckIsExist(UserFunctionEntity entity);

    UserFunctionEntity QueryItem(int Id);

    UserFunctionEntity QueryByRole(int roleId);

    int DeleteItem(int Id);

    void DeleteFunctionDetail(@Param(value = "functionId") int funcitonId);

    void CreateDetail(UserFunctionDetailEntity entity);

    List<PageVo> QueryPageVoByRoleId(@Param(value = "roleId") int roleId);
}